package com.learn.isp.bad.service.impl;

import com.learn.isp.bad.service.IPetLife;

public class DogLife implements IPetLife {

    @Override
    public void eat() {
        System.out.println("狗狗吃");
    }

    @Override
    public void fly() {
        // bad  狗不能飞，接口方法多余了
    }

    @Override
    public void swim() {
        System.out.println("狗狗游泳");
    }
}
